Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically update Cargo.toml features when updating bindings #24

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

pheki
Copy link
Member

@pheki pheki commented Feb 18, 2024

Hey! So this one's is to automate the last remaining piece when updating the bindings: Cargo.toml.

I took a very simple approach of searching for a "marker" string (# Automatically generated by build-util:) and replacing everything after it.

I also:

  • Removed the --as-features and --all-stubs-feature options, as they're not really useful anymore
  • Documented the all-stubs feature Nevermind. Forgot that some symbols are defined in multiple stubs (especially with the _363 stubs), so there are still mutually exclusive features...
  • Added features for the conflicting stubs but left them out of all-stubs. For completion but also as some may still may be useful with #[no-std].

Thoughts?

@pheki
Copy link
Member Author

pheki commented Feb 18, 2024

You can see this in action on #25

@pheki pheki requested a review from zetanumbers February 18, 2024 18:21
@pheki pheki force-pushed the auto-update-features branch from 2aa106a to 627056b Compare February 18, 2024 23:23
@pheki pheki merged commit defe3aa into main Feb 25, 2024
7 checks passed
@pheki pheki deleted the auto-update-features branch March 7, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants